
// const { Sequelize, DataTypes } = require("sequelize");
const { STRING, INTEGER, DATE } = require('../types')

module.exports = (sequelize) => {
  const tempstorage = sequelize.define(
    'tempstorage',
    {// 在这里定义模型属性
      packageId: { // 暂存医废包裹id
        type: INTEGER,
        primaryKey:true,
        autoIncrement:true,
        allowNull:false
      },
      receiveTime: { // 接收时间
        type: STRING,
      },
      receiveWeight: { // 接收重量
        type: STRING,
      },
      receiverId: { // 接收人员id
        type: STRING,
      },
      outTime: { // 运出时间
        type: STRING,
      },
      outWeight: { // 运出重量
        type: INTEGER,
      }
    },
    {
    tableName: "tempstorage",//直接提供表名
    timestamps: false
   }
  );
  return tempstorage
}
